package com.ruoyi.project.im.welcome.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 消息对象 welcome
 *
 * @author ruoyi
 * @date 2022-09-11
 */
public class Welcome extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private Integer id;

    /** 用户id */
    private String userId;

    private Integer sort;

    /** 101 文本 102 图片 */
    @Excel(name = "101 文本 102 图片")
    private Integer msgType;

    /** 消息内容 */
    @Excel(name = "消息内容")
    private String content;

    /** 是否默认 */
    @Excel(name = "是否默认")
    private Boolean isDefault;

    /** 延迟时间 */
    @Excel(name = "延迟时间")
    private Integer delaySecond;


    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserId()
    {
        return userId;
    }
    public void setMsgType(Integer msgType)
    {
        this.msgType = msgType;
    }

    public Integer getMsgType()
    {
        return msgType;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setIsDefault(Boolean isDefault)
    {
        this.isDefault = isDefault;
    }

    public Boolean getIsDefault()
    {
        return isDefault;
    }
    public void setDelaySecond(Integer delaySecond)
    {
        this.delaySecond = delaySecond;
    }

    public Integer getDelaySecond()
    {
        return delaySecond;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("msgType", getMsgType())
            .append("content", getContent())
            .append("isDefault", getIsDefault())
            .append("delaySecond", getDelaySecond())
            .append("createTime", getCreateTime())
            .toString();
    }
}
